package hu.uszeged.inf.wlab.stunner.utils;

/**
 * Utility class to hold the general constants.
 * 
 * @author szelezsant
 */
public final class Constants {

	/* bundle keys */
	/** The address of the selected STUN server. */
	public static final String KEY_SERVER_ADDRESS = "serverAddress";
	/** The port of the STUN server where the service can be accessed. */
	public static final String KEY_SERVER_PORT = "serverPort";
	/** The visible IP address of the device. */
	public static final String KEY_IP_ADDRESS = "ipAddress";
	/** The key to get the location. */
	public static final String KEY_LOCATION = "location";
	/** The key to get the data. */
	public static final String KEY_DATA = "data";

	/* app constants */
	/** The type of the account used by the sync adapter. */
	public static final String ACCOUNT_TYPE = "hu.uszeged.inf.wlab.stunit";
	/** Dummy account name. */
	public static final String DUMMY_ACCOUNT = "dummy";
	/** IPv4 address format. */
	public static final String IP_FORMAT = "%d.%d.%d.%d";

	/* intent actions */
	/** Intent action to deliver the location update. */
	public static final String ACTION_LOCATION_UPDATE = "hu.uszeged.inf.stunit.ACTION_LOCATION_UPDATE";

	/** License string. */
	public static final String LICENSE =
			"<p><b>This application is a part of FICT - Future ICT.</b><br/><br/>"
					+ "http://www.futurict.hu<br/><br/>"
					+ "This application is a simple lightweight STUN utlity. It shows the user the type of NAT (if there is) his/her"
					+ " device is behind. It also shows the parameters of the active and available connection user can save tests as bookmarks."
					+ "<br/><br/>"
					+ "The application is developed by:<br/><br/> <b>University of Szeged, Department of Software Engineering.</b>"
					+ "<br/><br/>"
					+ "<b>The application sends ANONYMOUS statistics to a Server maintained by University of Szeged and user agrees by using this application to use his/her NAT, location, battery and IP data ANONYMOUSLY.</b>"
					+ "<br/><br/>It is guaranteed that all data that could identify a device is hashed by an algorithm which cannot be reverted by the people who are evaluating these statistics. The statistics are used for R&D purposes and will be deleted when FICT project ends."
					+ "<p><b>This application uses JSTUN library.</b><br/><br/>"
					+ " Copyright (c) 2005 Thomas King <king@t-king.de> - All rights"
					+ " reserved."
					+ "<br/>http://jstun.javawi.de<br/><br/>";

	/**
	 * The API key required to use the upload servlet. This is private to university of szeged to ensure only their apk is collecting data
	 * for them
	 */
	public static final String API_KEY = "this-is-private-to-avoid-flooding-server";
	/** The package name used when uploading the request. */
	public static final String PACKAGE = "hu.uszeged.inf.wlab.stunner";
	/** The URL of the servlet. */
	public static final String SERVLET_URL = "this-is-private-to-avoid-flooding-server";

	/**
	 * Hidden constructor.
	 */
	private Constants() {
	}

}
